from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from time import sleep

driver = webdriver.Chrome('F:\packages\chrome-driver\chromedriver')
driver.get('https://www.lagou.com/jobs/list_python/p-city_0?&cl=true&fromSearch=true&labelWords=&suginput=')
driver.maximize_window()
sleep(5)
driver.find_element_by_class_name("body-btn").click()
sleep(5)
next_btn = driver.find_element_by_class_name("pager_next ")  # 找到下一页标签
next_btn.click()
